package com.szq.pattern.interceptor.impl;

import com.szq.pattern.interceptor.HandlerInterceptor;

/**
 * @description: 抽象类装饰器
 * @author: szq
 * @date: 2021-09-09 08:58:02
 */
public abstract class SsoDecorator implements HandlerInterceptor {

    private HandlerInterceptor handlerInterceptor;

    private SsoDecorator(){}

    public SsoDecorator(HandlerInterceptor handlerInterceptor) {
        this.handlerInterceptor = handlerInterceptor;
    }

    @Override
    public boolean preHandle(String request, String response, Object handler) {
        return handlerInterceptor.preHandle(request, response, handler);
    }
}
